package 接口;

public class Test implements WangTeacher,Teacher{
    public static void main(String[] args) {
//        Teacher t=new 方法重载.Test();
//        t.eat();
        WangTeacher w=new Test();
        w.eat();
    }
    @Override
    public void eat(){
        System.out.println("吃外卖。");
    }
}
